
//
//  MYCreditsMallCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/9.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit //国际化处理完成

class MYCreditsMallCell: YQTableViewBaseCell {

    @objc var goodsModel:YQPIntegerEntityModel? {
        didSet {
            self.goodsIcon.setImageWith(URL(string: (self.goodsModel?.defaultImage ?? nil) ?? ""), placeholder: nil)
            self.goodsTitleLb.text = self.goodsModel?.goodsName;
            self.creditsLb.text = String(format: "%@: %@", kYQLSSwift("所需积分"),self.goodsModel?.consumeIntegral ?? "");
        }
    }

    @objc @IBOutlet weak var goodsIcon: UIImageView!
    @objc @IBOutlet weak var goodsTitleLb: UILabel!
    
    @objc @IBOutlet weak var creditsLb: UILabel!
    
    @objc @IBOutlet weak var exchangeBtn: QMUIGhostButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.exchangeBtn.ghostColor = appThemeColor;
        self.exchangeBtn.setTitleColor(appThemeColor, for: .normal)
        self.goodsIcon.layer.cornerRadius = 8.0;
        self.goodsIcon.clipsToBounds = true;
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

    }

}
